home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 554 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: nntp.crl.com!lab!not-for-mail
  2. From: hoxsiew@ (Wayne D. Hoxsie Jr.)
  3. Newsgroups: comp.programming,comp.os.msdos.programming,comp.lang.c
  4. Subject: Re: Program to count lines in C-source ??
  5. Date: Sat, 06 Jan 1996 23:34:44 GMT
  6. Organization: The Lab BBS (618)462-0767
  7. Distribution: world
  8. Message-ID: <28GjdJ$01K@lab.org>
  9. References: <4clqrt$qh@pan.otol.fi>
  10. Reply-To: hoxsiew@crl.com (Wayne D. Hoxsie)
  11. NNTP-Posting-Host: crl7.crl.com
  12. X-Newsreader: IBM NewsReader/2 v1.2.5
  13. X-NNTPDaemon: changi 0.9 for OS/2
  14.  
  15. In <4clqrt$qh@pan.otol.fi>, tkes@rhea.otol.fi (Timo Sakari) writes:
  16. >
  17. >I am looking for a dos/win 3.1 program(s) (with source if possible) to count
  18. >lines from (several) C-files and maybe .h files too, preferably programs
  19. >that are capable of counting all lines and real code lines (no comment
  20. >and empty lines included).
  21. >
  22. >A capability to count lines that are compiled would be great too, because
  23. >I exclude/include portions of code with #define and #ifdef statements.
  24. >
  25. >Any pointers to such programs would be greatly appreciated. Thanks.
  26. >
  27.  
  28. Your C compiler has one built-in.  Try the C preprocessor.
  29.  
  30. --
  31. Wayne D. Hoxsie Jr. <hoxsiew@crl.com>
  32. finger or http://www.crl.com/~hoxsiew for PGP key
  33.  
  34.